package com.yxcz.service;

import java.util.ArrayList;
import java.util.Set;

import javax.persistence.EntityNotFoundException;

import com.yxcz.model.AddRoleForm;
import com.yxcz.model.Role;
import com.yxcz.model.UpdateRoleForm;

public interface RoleService {
	
	/**
	 * 处理权限组接口
	 * 
	 */

	public ArrayList<Role> list();
	public Role getRole(int id);
	public void deleteById(Integer id);
	public void update(UpdateRoleForm form);
	public void add(AddRoleForm form) throws Exception;
	public Set<Role> getRolesByUserId(Integer id);
	boolean setRole(int uid, Integer[] role_list);


}
